<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="__IMAGES__/avatar.gif" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>{$user.username}</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- search form
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat">
                  <i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>-->
        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
            <li class="header">MAIN NAVIGATION</li>
            <li class="<eq name="controller" value="dashboard">active</eq>">
                <a href="{:Url('dashboard/index')}">
                    <i class="fa fa-dashboard"></i> <span>仪表盘</span>
                </a>
            </li>

            <li class="treeview">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="fa fa-power-off"></i>
                    <span>
                        <empty name="mc_id">
                            代理和商户
                            <else/>
                            我的账户
                        </empty>
                    </span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <empty name="mc_id">
                        <li <if condition="$controller eq 'proxy' and $action eq 'index'">class="active"</if>>
                            <a href="{:Url('proxy/index')}">
                                <i class="fa fa-share-alt"></i> <span>代理管理</span>
                            </a>
                        </li>
                        <li <if condition="$controller eq 'proxy' and $action eq 'withdraw' or $action eq 'check_withdraw'">class="active"</if>>
                            <a href="{:Url('proxy/withdraw')}">
                                <i class="fa fa-cny"></i> <span>代理提现</span>
                            </a>
                        </li>
                        <li <if condition="$controller eq 'mch' and $action eq 'index'">class="active"</if>>
                            <a href="{:Url('mch/index')}">
                                <i class="fa fa-power-off"></i> <span>商户管理</span>
                            </a>
                        </li>
                    </empty>
                    <li <if condition="$controller eq 'mch' and $action eq 'withdraw' or $action eq 'check_withdraw'">class="active"</if>>
                        <a href="{:Url('mch/withdraw')}">
                            <i class="fa fa-cc-amex"></i> <span>商户提现</span>
                        </a>
                    </li>
                    <li <eq name="controller" value="orderlist">class="active"</eq>>
                        <a href="{:Url('orderlist/index')}">
                            <i class="fa fa-list"></i> <span>消费记录</span>
                        </a>
                    </li>
                </ul>
            </li>
            <empty name="mc_id">
            <li class="treeview">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="fa fa-cog"></i> <span>系统和其他</span>
                    <span class="pull-right-container">
                    <i class="fa fa-angle-left pull-right"></i>
                </span>
                </a>
                <ul class="treeview-menu">
                    <li <eq name="controller" value="setting">class="active"</eq>>
                        <a href="{:Url('setting/index')}">
                            <i class="fa fa-cog"></i> <span>系统设置</span>
                        </a>
                    </li>
                    <li <if condition="$controller eq 'member' and $action eq 'index'">class="active"</if>>
                        <a href="{:Url('member/index')}">
                            <i class="fa fa-user-plus"></i> <span>会员管理</span>
                        </a>
                    </li>
                    <li <eq name="action" value="redpack_query">class="active"</eq>>
                        <a href="{:Url('admin/pay/redpack_query')}">
                            <i class="fa fa-minus-square"></i> <span>红包发送查询</span>
                        </a>
                    </li>
                </ul>
            </li>
            </empty>
            <li class="treeview">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="fa fa-bullhorn"></i> <span>活动</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li <eq name="controller" value="article">class="active"</eq>>
                        <a href="{:Url('article/index')}">
                            <i class="fa fa-bullhorn"></i> <span>活动管理</span>
                        </a>
                    </li>
                    <li <if condition="$controller eq 'member' and $action neq 'index'">class="active"</if>>
                        <a href="{:Url('member/comment')}">
                            <i class="fa fa-comments-o"></i> <span>活动评论用户</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li class="treeview">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="fa fa-mail-reply"></i> <span>充值与提现</span>
                    <span class="pull-right-container">
                        <i class="fa fa-angle-left pull-right"></i>
                    </span>
                </a>
                <ul class="treeview-menu">
                    <li <eq name="controller" value="rechange">class="active"</eq>>
                        <a href="{:Url('rechange/index')}">
                            <i class="fa fa-money"></i> <span>充值管理</span>
                        </a>
                    </li>
                    <li <eq name="controller" value="redpack">class="active"</eq>>
                    <a href="{:Url('redpack/index')}">
                        <i class="fa fa-credit-card"></i> <span>红包充值</span>
                    </a>
                    </li>
                    <li <eq name="controller" value="vip">class="active"</eq>>
                        <a href="{:Url('vip/index')}">
                            <i class="fa fa-diamond"></i> <span>VIP充值</span>
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>